import request from '@/utils/request'

// 查询呈批件列表
export function listProcessModel(query) {
  return request({
    url: '/activiti/modeler/list',
    method: 'get',
    params: query
  })
}

// 新增流程模型
export function addProcessModel(query) {
  return request({
    url: '/activiti/modeler/create',
    method: 'get',
    params: query
  })
}

// 删除流程模型
export function delProcessModel(query) {
  return request({
    url: '/activiti/modeler/remove',
    method: 'post',
    params: query
  })
}

// 部署流程模型
export function bsProcessModel(modelId) {
  return request({
    url: '/activiti/modeler/deploy/'+modelId,
    method: 'get',
  })
}

// 导出流程模型
export function exportProcessModel(modelId) {
  return request({
    url: '/activiti/modeler/export/'+modelId,
    method: 'get',
  })
}
